import colorlog

handler = colorlog.StreamHandler()
handler.setFormatter(colorlog.ColoredFormatter(
    '%(log_color)s%(asctime)s - %(levelname)s - %(message)s'
))

NJLogger = colorlog.getLogger()
NJLogger.addHandler(handler)
NJLogger.setLevel(colorlog.DEBUG)